package com.clarence.dada.core.redis.operator.type;


import com.clarence.dada.core.redis.constants.RedisConstants;
import com.clarence.dada.core.redis.operator.AbstractRedisCacheOperator;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.Set;

/**
 * 基于redis的token的缓存
 *
 * @author fengshuonan
 * @since 2020/12/24 19:16
 */
public class RedisLoginTokenCache extends AbstractRedisCacheOperator<Set<String>> {

    public RedisLoginTokenCache(RedisTemplate<String, Set<String>> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return RedisConstants.LOGGED_USERID_PREFIX;
    }

}
